import {useSelector} from "react-redux";
import {StoreState} from "../redux";
import {PageInfoType} from "../redux/pageinfoReducer";

function useGetPageInfo() {
  const pageInfo = useSelector<StoreState>(state => state.pageInfo) as PageInfoType
  return pageInfo
}

export default useGetPageInfo
